//
//  EPCDemoController.swift
//  Weibo
//
//  Created by LioWu on 02/04/2017.
//  Copyright © 2017 MyGit. All rights reserved.
//

import UIKit

class EPCDemoController: EPCBaseTableController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第 \(navigationController?.viewControllers.count ?? 0) 页"
    }

    
    @objc fileprivate func showNext() {
        navigationController?.pushViewController(EPCDemoController(), animated: true)
    }
}


extension EPCDemoController {
    
    override func setupTableview() {
        
        super.setupTableview()
        
        navItem.rightBarButtonItem = UIBarButtonItem.init(title: "下一页", target:self, action: #selector(showNext))
    }
    
}
